public class StringTest {
    public static void main(String[] args) {
        String s = new String("Java");
        String m = "java";
        System.out.println("equals() "+s.equals(m));
        System.out.println("equalsIgnoreCase "+s.equalsIgnoreCase(m));
    }
}
